<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<table border="1">
      <tr bgcolor="#9acd32">
        <th>ID</th>
        <th>品类名</th>
        <th>描述</th>
      </tr>

<xsl:for-each select="//metaclassinfo">
    <tr>
      <td><xsl:value-of select="metaclassid"/></td>
      <td><xsl:value-of select="metaclassname"/></td>
      <td><xsl:value-of select="metaclassdesc"/></td>
    </tr>
</xsl:for-each> 

</table>
<xsl:call-template name="pagetotal"/> 

</body>
</html>
</xsl:template>

<xsl:template name="pagetotal">
<p>
<xsl:value-of select=".//pagetotal"/>

<xsl:for-each select=".//pagetotal">
<p>s</p>
</xsl:for-each>
</p>
</xsl:template>

</xsl:stylesheet>